﻿<phone:PhoneApplicationPage
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:Views="clr-namespace:DiamondDash.Views"
    x:Class="DiamondDash.Pages.CompletePage"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d"
    shell:SystemTray.IsVisible="False">
	<phone:PhoneApplicationPage.Resources>
		<Style x:Key="ButtonStyleOK" TargetType="Button">
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="Button">
						<Grid x:Name="grid">
							<VisualStateManager.VisualStateGroups>
								<VisualStateGroup x:Name="CommonStates">
									<VisualState x:Name="Pressed">
										<Storyboard>
											<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="image">
												<DiscreteObjectKeyFrame KeyTime="0">
													<DiscreteObjectKeyFrame.Value>
														<Visibility>Visible</Visibility>
													</DiscreteObjectKeyFrame.Value>
												</DiscreteObjectKeyFrame>
											</ObjectAnimationUsingKeyFrames>
											<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="image1">
												<DiscreteObjectKeyFrame KeyTime="0">
													<DiscreteObjectKeyFrame.Value>
														<Visibility>Collapsed</Visibility>
													</DiscreteObjectKeyFrame.Value>
												</DiscreteObjectKeyFrame>
											</ObjectAnimationUsingKeyFrames>
										</Storyboard>
									</VisualState>
									<VisualState x:Name="Normal"/>
									<VisualState x:Name="Disabled">
										<Storyboard>
											<DoubleAnimation Duration="0" To="0.5" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="grid" d:IsOptimized="True"/>
										</Storyboard>
									</VisualState>
									<VisualState x:Name="MouseOver"/>
								</VisualStateGroup>
								<VisualStateGroup x:Name="FocusStates">
									<VisualState x:Name="Focused"/>
								</VisualStateGroup>
							</VisualStateManager.VisualStateGroups>
							<Image x:Name="image1" Source="/Images/btnOK.png" Stretch="Fill"/>
							<Image x:Name="image" Source="/Images/btnOKPress.png" Stretch="Fill" Visibility="Collapsed"/>
						</Grid>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>
		<Storyboard x:Name="StoryboardShowLevelUp">
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="gridLevelUP">
				<EasingDoubleKeyFrame KeyTime="0" Value="0.4"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.7" Value="1"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.ScaleX)" Storyboard.TargetName="gridLevelUP">
				<EasingDoubleKeyFrame KeyTime="0" Value="1.3"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.7" Value="1">
					<EasingDoubleKeyFrame.EasingFunction>
						<BounceEase EasingMode="EaseOut"/>
					</EasingDoubleKeyFrame.EasingFunction>
				</EasingDoubleKeyFrame>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.ScaleY)" Storyboard.TargetName="gridLevelUP">
				<EasingDoubleKeyFrame KeyTime="0" Value="1.3"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.7" Value="1">
					<EasingDoubleKeyFrame.EasingFunction>
						<BounceEase EasingMode="EaseOut"/>
					</EasingDoubleKeyFrame.EasingFunction>
				</EasingDoubleKeyFrame>
			</DoubleAnimationUsingKeyFrames>
		</Storyboard>
		<Storyboard x:Name="StoryboardNewHigh">
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.ScaleX)" Storyboard.TargetName="imgNewHigh">
				<EasingDoubleKeyFrame KeyTime="0" Value="5"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="1">
					<EasingDoubleKeyFrame.EasingFunction>
						<ExponentialEase EasingMode="EaseOut"/>
					</EasingDoubleKeyFrame.EasingFunction>
				</EasingDoubleKeyFrame>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.ScaleY)" Storyboard.TargetName="imgNewHigh">
				<EasingDoubleKeyFrame KeyTime="0" Value="5"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="1">
					<EasingDoubleKeyFrame.EasingFunction>
						<ExponentialEase EasingMode="EaseOut"/>
					</EasingDoubleKeyFrame.EasingFunction>
				</EasingDoubleKeyFrame>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="imgNewHigh">
				<EasingDoubleKeyFrame KeyTime="0" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="1">
					<EasingDoubleKeyFrame.EasingFunction>
						<ExponentialEase EasingMode="EaseOut"/>
					</EasingDoubleKeyFrame.EasingFunction>
				</EasingDoubleKeyFrame>
			</DoubleAnimationUsingKeyFrames>
		</Storyboard>
	</phone:PhoneApplicationPage.Resources>

    <!--LayoutRoot 是包含所有页面内容的根网格-->
    <Grid x:Name="LayoutRoot" Background="Transparent">
    	<Image Source="/Images/CompletePage.png" Stretch="Fill"/>
    	<TextBlock HorizontalAlignment="Left" Margin="79,16,0,0" TextWrapping="Wrap" Text="{Binding Text, ElementName=txtCoinCount}" VerticalAlignment="Top" FontFamily="Segoe WP Black" FontSize="40" Foreground="Black" RenderTransformOrigin="0.5,0.5">
    		<TextBlock.RenderTransform>
    			<CompositeTransform TranslateX="3" TranslateY="2"/>
    		</TextBlock.RenderTransform>
    	</TextBlock>
    	<TextBlock x:Name="txtCoinCount" HorizontalAlignment="Left" Margin="79,16,0,0" TextWrapping="Wrap" Text="1000000" VerticalAlignment="Top" FontFamily="Segoe WP Black" FontSize="40" Foreground="White"/>

    	<Views:LevelProgressView x:Name="levelProgress" HorizontalAlignment="Left" Margin="299,6,0,0" VerticalAlignment="Top"/>
    	<TextBlock HorizontalAlignment="Center" TextWrapping="Wrap" Text="{Binding Text, ElementName=txtScore}" VerticalAlignment="Top" FontFamily="Segoe WP Black" FontSize="61.333" Margin="0,235,0,0" Foreground="Black" RenderTransformOrigin="0.5,0.5">
    		<TextBlock.RenderTransform>
    			<CompositeTransform TranslateX="3" TranslateY="2"/>
    		</TextBlock.RenderTransform>
    	</TextBlock>
    	<TextBlock x:Name="txtScore" HorizontalAlignment="Center" TextWrapping="Wrap" Text="8888888" VerticalAlignment="Top" FontFamily="Segoe WP Black" FontSize="61.333" Margin="0,235,0,0" Foreground="White"/>
    	<TextBlock HorizontalAlignment="Center" Margin="0,326,0,0" TextWrapping="Wrap" Text="{Binding Text, ElementName=txtBonusPercent}" VerticalAlignment="Top" FontFamily="Segoe WP Black" FontSize="32" Foreground="Black" RenderTransformOrigin="0.5,0.5">
    		<TextBlock.RenderTransform>
    			<CompositeTransform TranslateX="3" TranslateY="2"/>
    		</TextBlock.RenderTransform>
    	</TextBlock>
    	<TextBlock x:Name="txtBonusPercent" HorizontalAlignment="Center" Margin="0,326,0,0" TextWrapping="Wrap" Text="+10%" VerticalAlignment="Top" FontFamily="Segoe WP Black" FontSize="32" Foreground="White"/>
    	<TextBlock HorizontalAlignment="Left" Margin="228,394,0,0" TextWrapping="Wrap" Text="{Binding Text, ElementName=txtAddCoin}" VerticalAlignment="Top" FontFamily="Segoe WP Black" FontSize="45.333" Foreground="Black" RenderTransformOrigin="0.5,0.5">
    		<TextBlock.RenderTransform>
    			<CompositeTransform TranslateX="3" TranslateY="2"/>
    		</TextBlock.RenderTransform>
    	</TextBlock>
    	<TextBlock x:Name="txtAddCoin" HorizontalAlignment="Left" Margin="228,394,0,0" TextWrapping="Wrap" Text="888" VerticalAlignment="Top" FontFamily="Segoe WP Black" FontSize="45.333" Foreground="White"/>
    	<TextBlock HorizontalAlignment="Left" Margin="228,483,0,0" TextWrapping="Wrap" Text="{Binding Text, ElementName=txtAddExp}" VerticalAlignment="Top" FontFamily="Segoe WP Black" FontSize="45.333" Foreground="Black" RenderTransformOrigin="0.5,0.5">
    		<TextBlock.RenderTransform>
    			<CompositeTransform TranslateX="3" TranslateY="2"/>
    		</TextBlock.RenderTransform>
    	</TextBlock>
    	<TextBlock x:Name="txtAddExp" HorizontalAlignment="Left" Margin="228,483,0,0" TextWrapping="Wrap" Text="888" VerticalAlignment="Top" FontFamily="Segoe WP Black" FontSize="45.333" Foreground="White"/>
    	<Button x:Name="btnOK" Content="Button" Height="103" Margin="0,0,0,105" Style="{StaticResource ButtonStyleOK}" Width="114" HorizontalAlignment="Center" VerticalAlignment="Bottom" Click="btnOK_Click"/>
    	<Image x:Name="imgNewHigh" Margin="257,212,0,0" Source="/Images/newHigh.png" Stretch="Fill" Opacity="0" HorizontalAlignment="Left" VerticalAlignment="Top" Width="127" Height="32" RenderTransformOrigin="0.5,0.5">
    		<Image.RenderTransform>
    			<CompositeTransform/>
    		</Image.RenderTransform>
    	</Image>
    	<Grid x:Name="gridLevelUP" Margin="10,49,10,213" VerticalAlignment="Top" Width="460" Height="538" IsHitTestVisible="False" Opacity="0" RenderTransformOrigin="0.5,0.5" d:IsLocked="True">
    		<Grid.RenderTransform>
    			<CompositeTransform/>
    		</Grid.RenderTransform>
    		<Image Source="/Images/LevelUpBackground.png" Stretch="Fill"/>
    		<TextBlock HorizontalAlignment="Center" TextWrapping="Wrap" Text="{Binding Text, ElementName=txtNewLevel}" VerticalAlignment="Center" Foreground="Black" FontSize="96" Margin="0,189,8,221" FontFamily="Segoe WP Black" TextAlignment="Center" RenderTransformOrigin="0.5,0.5">
    			<TextBlock.RenderTransform>
    				<CompositeTransform TranslateX="5" TranslateY="4"/>
    			</TextBlock.RenderTransform>
    		</TextBlock>
    		<TextBlock x:Name="txtNewLevel" HorizontalAlignment="Center" TextWrapping="Wrap" Text="9" VerticalAlignment="Center" Foreground="White" FontSize="96" Margin="0,189,8,221" FontFamily="Segoe WP Black" TextAlignment="Center"/>
    		<TextBlock x:Name="txtNewBonusPercent" HorizontalAlignment="Center" Margin="0,0,0,20" TextWrapping="Wrap" Text="+11%" VerticalAlignment="Bottom" Foreground="Black" FontSize="53.333" TextAlignment="Center" FontFamily="Segoe WP Black"/>

    	</Grid>

        <!--TitlePanel 包含应用程序的名称和页标题-->

        <!--ContentPanel - 在此处放置其他内容-->
    </Grid>

</phone:PhoneApplicationPage>